//
//  YYT_NavigationCollectionCell.m
//  AudioVisualFeast
//
//  Created by dllo on 16/1/27.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "YYT_NavigationCollectionCell.h"

@implementation YYT_NavigationCollectionCell

-(instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.title = [[UILabel alloc] initWithFrame:self.bounds];
        [self addSubview:self.title];
        _title.textAlignment = NSTextAlignmentCenter;
        _title.textColor = [UIColor whiteColor];
        
    }
    return self;
}
-(void)setColor:(UIColor *)color {
    _color = color;
    _title.textColor = color;
}

-(void)setName:(NSString *)name {
    _name = name;
    self.title.text = _name;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    [super applyLayoutAttributes:layoutAttributes];
    self.title.frame = self.bounds;
}


@end
